<?php echo $header; ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>

<div class="sixteen columns">
<script type="text/javascript"><!--
	//window.onload = boss_header_move_search;
	//addLoadEvent(boss_header_move_search);
	$(document).ready(function() {
		boss_header_move_mobile();
	});
	$(window).resize(function() {
		boss_header_move_mobile();
	});
	
	function boss_header_move_mobile()	{
		if(getWidthBrowser() < 767){
			if ($("#logo").html()) {
				$("#m-logo").html($("#logo").html());
				$("#logo").html("");
			}
			if ($("#welcome").html()) {
				$("#m-welcome").html($("#welcome").html());
				$("#welcome").html("");
			}
			if ($("#search-form").html()) {
				$("#m-search").html($("#search-form").html());
				$("#search-form").html("");
				$("#search").css("display", "none");
				$('.button-search').bind('click', function() {
					url = $('base').attr('href') + 'index.php?route=product/search';
							 
					var filter_name = $('input[name=\'filter_name\']').attr('value');
					
					if (filter_name) {
						url += '&filter_name=' + encodeURIComponent(filter_name);
					}
					
					location = url;
				});
				$('#header input[name=\'filter_name\']').bind('keydown', function(e) {
					if (e.keyCode == 13) {
						url = $('base').attr('href') + 'index.php?route=product/search';
						 
						var filter_name = $('input[name=\'filter_name\']').attr('value');
						
						if (filter_name) {
							url += '&filter_name=' + encodeURIComponent(filter_name);
						}
						
						location = url;
					}
				});
			}
		} else {
			if ($("#m-logo").html()) {
				$("#logo").html($("#m-logo").html());
				$("#m-logo").html("");
			}
			if ($("#m-welcome").html()) {
				$("#welcome").html($("#m-welcome").html());
				$("#m-welcome").html("");
			}
			if ($("#m-search").html()) {
				$("#search-form").html($("#m-search").html());
				$("#m-search").html("");
				$("#search").css("display", "block");
			}
			
		}
	}
//--></script>


<div class="frame_category">

<div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  
  
<?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
    <div class="content">
        <div class="breadcrumb">
            <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
            <?php } ?>
        </div>
        <h1><?php echo $heading_title; ?></h1>
        <p><?php echo $text_account_already; ?></p>
        <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">

            <div class="content">
                <table class="form">
                    <tr>
                        <td><span class="required">*</span> <?php echo $entry_name; ?></td>
                        <td><input type="text" size="10" name="name" value="<?php echo $name; ?>" />
                            <?php if ($error_name) { ?>
                            <span class="error"><?php echo $error_name; ?></span>
                            <?php } ?></td>
                    </tr>
                    <tr>
                        <td><span class="required">*</span> <?php echo $entry_email; ?></td>
                        <td><input type="text" size="10" name="email" value="<?php echo $email; ?>" />
                            <?php if ($error_email) { ?>
                            <span class="error"><?php echo $error_email; ?></span>
                            <?php } ?></td>
                    </tr>

                    <tr>
                        <td><span class="required">*</span> <?php echo $entry_phone; ?></td>
                        <td><input type="text" size="10" name="phone" value="<?php echo $phone; ?>" />
                            <?php if ($error_phone) { ?>
                            <span class="error"><?php echo $error_phone; ?></span>
                            <?php } ?></td>
                    </tr>
                    <tr>
                        <td><span class="required">*</span> <?php echo $entry_password; ?></td>
                        <td><input type="password" size="10" name="password" value="<?php echo $password; ?>" />
                            <?php if ($error_password) { ?>
                            <span class="error"><?php echo $error_password; ?></span>
                            <?php } ?></td>
                    </tr>
                    <tr>
                        <td><span class="required">*</span> <?php echo $entry_confirm; ?></td>
                        <td><input type="password" size="10" name="confirm" value="<?php echo $confirm; ?>" />
                            <?php if ($error_confirm) { ?>
                            <span class="error"><?php echo $error_confirm; ?></span>
                            <?php } ?></td>
                    </tr>
                    <tr>

                        <td><span class="required">*</span> <?php echo $entry_captcha; ?></td>
                        <td><img align="left" vspace="2" hspace="4" src="<?php echo $captcha; ?>" /> <input type="text" size="20" name="captcha" value = "" /> <?php if (isset($error_captcha)) { ?>
                            <span class="error"><?php echo $error_captcha; ?></span>
                            <?php } ?></td>
                    </tr>
                </table>
            </div>



            <div style="margin: 5px;" class="right">
                <input type="submit" value="<?php echo $button_continue; ?>" class="button" />
            </div>


        </form></div>
        
        </div></div>
    <?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
    //$('select[name=\'zone_id\']').load('index.php?route=account/register/zone&country_id=<?php echo $country_id; ?>&zone_id=<?php echo $zone_id; ?>');
    //--></script>
<script type="text/javascript"><!--
    $('.colorbox').colorbox({
        width: 560,
        height: 560
    });
    //--></script>
<?php echo $footer; ?>